Using the GUI to create a new ranged type, such as a ranged integer: you can fill in just min or just max value, leaving other field blank: this works, and new type is only limited on the one end. However I am not sure of the syntax to do that in DXL...normally when both limits are specified you do that like this:
int minLimit=1
int maxLimit=10
string errMsg
AttrType at=create("myNewRangedIntTypeName",minLimit,maxLimit,errMsg)
However if you only need to specify one limit, what is the syntax? Omitting one of the limit arguments is not a valid syntax and generates an error. Trying to use a null valued argument also fails. strathglass - Tue Apr 23 09:49:01 EDT 2019 |
Re: Ranged Type - how to define with only 1 limit? This seems to work...
int minLimit=1
string errMsg
AttrType at = create("myNewRangedIntTypeName", attrInteger, errMsg)
setMinValue(at, minLimit, true)
|
Re: Ranged Type - how to define with only 1 limit? Ahhh thank you! Yes that would seem to be the approach to make it work! :) |